package myTree;

import com.alibaba.fastjson.JSONObject;

public class BinaryTreeTest {

    public static void main(String[] args) {
        BinaryTree root = new BinaryTree();
        BinaryTreeHelp binaryTreeHelp = new BinaryTreeHelp();
        binaryTreeHelp.add(root, new BinaryTree(1));
        binaryTreeHelp.add(root, new BinaryTree(2));
        binaryTreeHelp.add(root, new BinaryTree(3));
        binaryTreeHelp.add(root, new BinaryTree(4));
        binaryTreeHelp.add(root, new BinaryTree(5));
        binaryTreeHelp.add(root, new BinaryTree(6));
        binaryTreeHelp.add(root, new BinaryTree(7));
        System.out.println(JSONObject.toJSONString(root));
    }
}
